
using AutoMapper;
using Ixyu.Health;
using Ixyu.Health.Dtos;

namespace Ixyu.Health.Mapper
{

	/// <summary>
    /// 配置DailyLife的AutoMapper
    /// </summary>
	internal static class DailyLifeMapper
    {
        /// <summary>
        /// 添加manper
        /// </summary>
        /// <param name="configuration"></param>
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <DailyLife,DailyLifeListDto>();
            configuration.CreateMap <DailyLifeListDto,DailyLife>();

            configuration.CreateMap <DailyLifeEditDto,DailyLife>();
            configuration.CreateMap <DailyLife,DailyLifeEditDto>();
            configuration.CreateMap<DailyItemEditDto, DailyItem>();
            configuration.CreateMap<DailyItem, DailyItemEditDto>();

        }
	}
}
